package com.wang.bootbuilder.controller.execl;

import com.alibaba.excel.EasyExcel;
import com.wang.bootbuilder.entity.dto.ExeclDictDto;
import com.wang.bootbuilder.service.TestTranMain;
import com.wang.bootbuilder.utils.StringUtils;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping("/tran")
@Api(value = "tran", description = "测试事务的controller")
public class TestTranController {

    @Autowired
    TestTranMain testTranMain;

    @GetMapping("/test")
    public void batchDownLoad(HttpServletResponse response) throws IOException {
        testTranMain.splitTest();
    }

}
